# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1305.9.3 -> 1.1305.9.4 # include/linux/pci.h 1.90 -> 1.91 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/06/14 vojtech@kernel.bkbits.net 1.1305.10.4 # Merge # -------------------------------------------- # 03/06/17 davidm@tiger.hpl.hp.com 1.1305.9.4 # Fix so it can be used on platforms with CONFIG_PCI off. # -------------------------------------------- # diff -Nru a/include/linux/pci.h b/include/linux/pci.h --- a/include/linux/pci.h Thu Jun 19 00:45:39 2003 +++ b/include/linux/pci.h Thu Jun 19 00:45:39 2003 @@ -743,6 +743,15 @@ return rc; } +/* + * PCI domain support. Sometimes called PCI segment (eg by ACPI), + * a PCI domain is defined to be a set of PCI busses which share + * configuration space. + */ +#ifndef CONFIG_PCI_DOMAINS +static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } +#endif + #endif /* !CONFIG_PCI */ /* these helpers provide future and backwards compatibility @@ -799,16 +808,6 @@ #define PCIPCI_VIAETBF 8 #define PCIPCI_VSFX 16 #define PCIPCI_ALIMAGIK 32 - -/* - * PCI domain support. Sometimes called PCI segment (eg by ACPI), - * a PCI domain is defined to be a set of PCI busses which share - * configuration space. - */ - -#ifndef CONFIG_PCI_DOMAINS -static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } -#endif #endif /* __KERNEL__ */ #endif /* LINUX_PCI_H */